<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>登录-结核病预警系统</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <link href="${basePath}css/login.css" rel="stylesheet" type="text/css" />
    <#include "/template/head.html">
    <script language="javascript">
    $(function() {
      $(document).keydown(function(event){
        if(event.keyCode==13) {$('#loginForm').submit();}
      });
      
      var v = $('#loginForm').validate();
      $('#btnr').click(function(){
        v.resetForm();
      });
    });
    </script>
  </head>
  <body>
    <div id="warp">
      <div id="message">
      <#if errors??>
        <ul class="error">
          <#list errors as error><li>●&nbsp;${error}</li></#list>
        </ul>
      </#if>
      </div>
      <form action="${basePath}login.do" method="post" id="loginForm">
        <table class="login">
          <tr>
            <th><label for="dlmc">帐&nbsp;&nbsp;&nbsp;号</label></th>
            <td colspan="2"><input name="dlmc" class="text required"/></td>
          </tr>
          <tr>
            <th><label for="dlmm">密&nbsp;&nbsp;&nbsp;码</label></th>
            <td colspan="2"><input name="dlmm" type="password" class="text required"/></td>
          </tr>
          <tr>
            <th><label for="captcha">验证码</label></th>
            <td><input name="captcha" class="captcha required"/></td>
            <td><img src="captcha.svl" onclick="this.src='${basePath}captcha.svl?d='+new Date()" title="点击更换验证码" style="cursor: pointer;"/></td>
          </tr>
          <tr>
            <th></th>
            <td colspan="2"><img class="fl" src="${basePath}img/login_btn.gif" usemap="#btn"/></td>
          </tr>
        </table>
      </form>
    </div>
    <map name="btn">
      <area shape="rect" id="btns" coords="3,3,36,19" href="javascript:void(0)" onclick="$('#loginForm').submit();"/>
      <area shape="rect" id="btnr" coords="40,3,78,18" href="javascript:void(0)"/>
    </map>
  </body>
</html>
